import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '昵称',
    align: "center",
    dataIndex: 'nick'
  },
  {
    title: '姓名',
    align: "center",
    dataIndex: 'name'
  },
  {
    title: '手机号',
    align: "center",
    dataIndex: 'phone'
  },
  {
    title: '身份证号',
    align: "center",
    dataIndex: 'idcard'
  },
  {
    title: '邀请码',
    align: "center",
    dataIndex: 'inviteCode'
  },
  {
    title: '用户等级',
    align: "center",
    dataIndex: 'userLevel'
  },
  {
    title: '用户积分',
    align: "center",
    dataIndex: 'userPoints'
  },
  {
    title: '用户注册日期',
    align: "center",
    dataIndex: 'registerTime'
  },
  {
    title: '邀请用户数量',
    align: "center",
    dataIndex: 'inviteNum'
  },
  {
    title: '实名认证数量',
    align: "center",
    dataIndex: 'inviteAuthNum'
  },
];

// 高级查询数据
export const superQuerySchema = {
  nick: {title: '昵称',order: 0,view: 'text', type: 'string',},
  name: {title: '姓名',order: 1,view: 'text', type: 'string',},
  phone: {title: '手机号',order: 2,view: 'text', type: 'string',},
  idcard: {title: '身份证号',order: 3,view: 'text', type: 'string',},
  pwd: {title: '密码',order: 4,view: 'text', type: 'string',},
  inviteCode: {title: '邀请码',order: 5,view: 'text', type: 'string',},
  userLevel: {title: '用户等级',order: 6,view: 'number', type: 'number',},
  userPoints: {title: '用户积分',order: 7,view: 'number', type: 'number',},
  registerTime: {title: '用户注册日期',order: 8,view: 'datetime', type: 'string',},
  inviteNum: {title: '邀请用户数量',order: 9,view: 'number', type: 'number',},
  inviteAuthNum: {title: '实名认证数量',order: 10,view: 'number', type: 'number',},
};
